package com.globox.servlet;

public interface IConstants {

	public static final int MAX_CLIENTS = 1000000;

	public static final String appSrvPort = "12345";
	public static final String appSrvHost = "localhost";

	public static final String HEADER = "<%@ page language=\"java\" contentType=\"text/html; "
			+ "charset=ISO-8859-1\" pageEncoding=\"ISO-8859-1\"%>"
			+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" "
			+ "\"http://www.w3.org/TR/html4/loose.dtd\">"
			+ "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">"
			+ "<title>Globox viewing sits</title><script type=\"text/javascript\"> "
			+ "function confirmPurchase(){var hf = document.getElementById('allReservedSitsHF'); var conf=confirm('The follwing sits will be commited: ' + hf.value); if(!conf) return; else hf.value =\"\";} "
			+ "function addReservedSit(sender, args){var hf = document.getElementById('allReservedSitsHF'); if(sender.checked){ hf.value +=args + ';'; } else { hf.value = hf.value.replace(args+';',''); if(hf.value.length > 0) { hf.value = hf.value.substring(hf.length-1); } } alert(hf.value);} "
			+ "function ReserveSit(sit){ var hf = document.getElementById('allReservedSitsHF'); hf.value = sit; } "
			+ "function fireEvent(element,event){if (document.createEventObject){var evt = document.createEventObject(); return element.fireEvent('on'+event,evt) }else{var evt = document.createEvent(\"HTMLEvents\"); evt.initEvent(event, true, true ); return !element.dispatchEvent(evt);}} "
			+ "function updateHF(args){ var hf = document.getElementById('allReservedSitsHF'); hf.value = args + ';'; } "
			+ "function checkform(form){if(form.query.value == \"\" || form.query.value == '' || form.query.value == undefined){ alert( \"Invalid query\" ); form.query.focus(); return false ; } return true ;}"
			+ "</script></head><body style=\"background-color:lightgray;\">"
			+ "<p style=\"background-color:black; color:white\">Welcome to Globox, the gate to all cinemas!   This is your unique ID: "
			+ "{{uniqueId}}"
			+ "</p><p>Start searching here</p><form name=\"search\" method=\"POST\" action=\"/globox-client/search\"  onsubmit=\"return checkform(this);\"><table><tr><td><input type=\"text\" name=\"query\" size=\"70\" /></td><td><input type=\"submit\" value=\"Go\" /></td></tr></table></form>";
}
